package com.stone.bigdata.dao.poc;

import com.stone.bigdata.domain.AddCount;
import com.stone.bigdata.domain.VO.CityTotalVO;
import org.apache.ibatis.annotations.Mapper;
import com.stone.bigdata.domain.ActiveCity;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface ActiveCityDao {

    void saveActiveCity(ActiveCity activeCity);

    void saveAddTotal(AddCount addCount);

    List<AddCount> listSixDayAdd(@Param("lastSix") Date lastSix, @Param("lastOne") Date lastOne);

    List<CityTotalVO> listActiveCity(@Param("yesterday") Date yesterday);

    void saveFiveAfter(AddCount addCount);

    List<AddCount> listFiveAfter(@Param("zero") Timestamp zero, @Param("now") Timestamp now);
}
